//index.js
const app = getApp();
let that = null;
import store from "../../factory"
import * as Request from '../../request';
import * as mouble from '../../until';

Page({
  data: {
    list: []
  },

  onLoad: function () {
    that = this
  },
  onShow() {
    that.getPresellList()
  },
  routerGo(e) {
    app.routerGo(e)
  },
  getPresellList() {
    Request.getPresellList({
      page: 1,
      size: 99
    }).then(res => {
      if (res.code == 200 && res.data) {
        that.setData({
          list: res.data.data
        })
      }
    })
  }
})
